package com.eda.commous.http;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 统一返回结果封装*
 * @param <T>
 */
@Data
@NoArgsConstructor
public class Result<T> {
    private T result;

    public Result(T result) {
        this.result = result;
    }

    public static <T> Result<T> of(T result) {
        return new Result<T>(result);
    }
}
